// POST - 员工登录
import {MC_MANAGE_AXIOS} from "./axios.js";
import {PROJECT_INFO} from "../const/index.js";

export function loginByAccountApi(params) {
    return MC_MANAGE_AXIOS.post('emp/loginByAccount', params);
}

// URL - 上传员工头像地址
export const UPLOAD_AVATAR_URL = PROJECT_INFO.serverHost + '/api/v1/emp/uploadAvatar';

// PUT - 修改员工密码
export function updatePasswordApi(params) {
    return MC_MANAGE_AXIOS.put('emp/updatePassword', params);
}
